package com.ktjiaoyu.crm.controller;

import com.ktjiaoyu.crm.common.KtjiaoyuInfo;
import com.ktjiaoyu.crm.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import javax.annotation.Resource;

@RestController
public class HelloController {
    @Resource
    private KtjiaoyuInfo ktjiaoyuInfo;

    @Autowired
    private DemoService demoService;
    @RequestMapping("/hello1")
    public String hello(){
        String msg= demoService.sayHello();
        msg += " "+ktjiaoyuInfo.getName()+" "+ktjiaoyuInfo.getEmail();
        return msg;
    }
}
